import request from '@/utils/request'
/**
 * 字典列表
 * @param {array} params 请求参数
 */
export function getDictionaryList(params) {
    return request({
      url: '/adminapi/Dictionary/getDictionaryList',
      method: 'post',
      params: params
    })
  }
// 保存字典列表
  export function addDictionary(data) {
    return request({
      url: '/adminapi/Dictionary/SaveDictionary',
      method: 'post',
      data: data
    })
  }
  // 删除字典列表
  export function delDictionary(data) {
    return request({
      url: '/adminapi/Dictionary/delDictionary',
      method: 'post',
      data: data
    })
  }

  export function getDictionaryValueList(data) {
    return request({
      url: '/adminapi/Dictionary/getDictionaryValueList',
      method: 'post',
      data: data
    })
  }

  // 保存字典标签列表
  export function addDictionaryValue(data) {
    return request({
      url: '/adminapi/Dictionary/SaveDictionaryValue',
      method: 'post',
      data: data
    })
  }
  // 删除字典标签列表
  export function delDictionaryValue(data) {
    return request({
      url: '/adminapi/Dictionary/delDictionaryValue',
      method: 'post',
      data: data
    })
  }